<template>
	<view style="color: #F9F9F9; padding: 10px;">
		<view class="shangmian">
			<!-- 文字居中 -->
			<view style="color: #999999;font-size: 16px;text-align: center;">
				预存款金额
			</view>
			<view style="color: #000; font-weight: bold;font-size: 20px;
			text-align: center;padding-top: 10px;">
				￥0.00
			</view>
			<view style="display: flex;padding: 10px;">
				<u-button @click="close()" text="提现" shape="circle" color="#FDF2EE"
					style="color: #F66D41; flex: 1; margin-right: 5px;"></u-button>
				<u-button @click="tologin()" text="充值" shape="circle" color="#EE6D41"
					style="color: white;flex: 1; margin-left: 5px;"></u-button>
			</view>
		</view>
		<view class="xiamian" @click="tocunkuan">
			<view style="font-size: 16px; color: #000;">预存款明细</view>
			<u-icon name="arrow-right" color="#000000" size="20"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			// 提现功能
			close() {
				uni.navigateTo({
					url: '/pages/tixianjine/tixianjine'
				});
			},
			
			// 充值功能
			tologin() {
				uni.navigateTo({
					url: '/pages/chongzhijine/chongzhijine'
				});
			},
			
			// 跳转到预存款明细
			tocunkuan(){
				uni.navigateTo({
					url:"/pages/yucunkuan/yucunkuanliebiao"
				})
			}
		}
	}
</script>

<style>
	.shangmian {
		background-color: white;
		height: 100px;
		border-radius: 10px;
		padding: 20px;
		margin: 10px auto 0;
		width: 90%;
	}

	.xiamian {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background-color: #fff;
		border-radius: 10px;
		padding: 12px 15px;
		margin: 10px auto 0;
		width: 90%;
	}
</style>